From: Ludovic CHEVALIER Date: Mon, 28 Dec 2015 18:20:08 +0000 (+0100) Subject: [PY] ~journal code field: 5 char --> 7 char X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/config/%7B%24www_url%7Dadmin/compta/operations/%27puce.gif/%22%24l%5B0%5D/%40%20%27config_titre_base_sup%27%20=%3E%20%27Declaration%20of%20an%20additional%20database%27%2C%20%27config_titre_base_sup_choix%27%20=%3E%20%27Choose%20an%20additional%20database%27%2C%20%27connexion_ldap%27%20=%3E%20%27Connection:%27%2C-%27copier_en_local%27%20=%3E%20%27Copy%20to%20local%20site%27%2C%20%27creer_et_associer_un_auteur%27%20=%3E%20%27Create%20and%20associate%20an%20author%27%2C-%27creer_et_associer_une_rubrique%27%20=%3E%20%27Create%20and%20link%20a%20section%27%2C%20%20/%20D%20%27date_mot_heures%27%20=%3E%20%27H%27%2C%40%40%20-141%2C7%20%20113%2C6%20%40%40%20Do%20not%20submit%20this%20import%20request.%3Cp%3EFor%20more%20information%2C%20please%20see%20%3Ca%20href=?a=commitdiff_plain;h=f7a96a9ce19c45e93bd564d1f442095dfd005994;p=burette%2Fetudesetchantiersidf.git [PY] ~journal code field: 5 char --> 7 char --- diff --git a/account.py b/account.py new file mode 100644 index 0000000..5b5a90c --- /dev/null +++ b/account.py @@ -0,0 +1,39 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# etudesetchantiersidf module for OpenERP, Custom module for Étude et +# Chantiers île-de-France +# Copyright (C) 2014-2015 etudesetchantiersidf +# () +# +# This file is a part of etudesetchantiersidf +# +# etudesetchantiersidf is free software: you can redistribute it and/or +# modify it under the terms of the GNU General Public License as published +# by the Free Software Foundation, either version 3 of the License, or (at +# your option) any later version. +# +# etudesetchantiersidf is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +# +############################################################################## + +from openerp.osv import osv +from openerp.osv import orm +from openerp.osv import fields + + +class account_journal(osv.osv): + _inherit = 'account.journal' + + _columns = { + 'code': fields.char('Code', size=7, required=True, help="The code will be displayed on reports."), + } + + +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: